// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@CHART}}-chart/\{{spinalCase ctrl.codeName}}-chart-vo.ts.hbs生成
{{#* inline 'initSeriesField' serieses}}
  {{#each serieses as | series |}}
  {{#if series.catalogField}}'{{lowerCase series.catalogField}}',{{/if~}}
  {{#if series.dataField}}'{{lowerCase series.dataField}}',{{/if~}}
  {{#if series.idField}}'{{lowerCase series.idField}}',{{/if~}}
  {{#if series.seriesField}}'{{lowerCase series.seriesField}}',{{/if~}}
  {{#if series.tagField}}'{{lowerCase series.tagField}}',{{/if~}}
  {{#if series.valueField}}'{{lowerCase series.valueField}}',{{/if~}}
  {{/each}}
{{/inline}}
import { ControlVOBase } from '@/core';

export class {{pascalCase ctrl.name}}ControlVO extends ControlVOBase {

  /**
   * 实体主键属性
   *
   * @protected
   * @memberof {{pascalCase ctrl.name}}ControlVO
   */
  protected readonly srfkey = '{{lowerCase ctrl.psAppDataEntity.keyPSAppDEField.codeName}}';

  /**
   * 实体主信息属性
   *
   * @protected
   * @memberof {{pascalCase ctrl.name}}ControlVO
   */
  protected readonly srfmajortext = '{{lowerCase ctrl.psAppDataEntity.majorPSAppDEField.codeName}}';

  /**
   * 实体标识
   *
   * @protected
   * @memberof {{pascalCase ctrl.name}}ControlVO
   */
  protected readonly deCodeName = '{{lowerCase ctrl.psAppDataEntity.codeName}}';

  constructor(data: any){
      super(data);
      //  图表自持属性
      this.$ownKeys = ['{{lowerCase ctrl.psAppDataEntity.codeName}}', {{#each ctrl.psAppDataEntity.allPSAppDEFields as | field |}}'{{lowerCase field.codeName}}'{{#unless @last}}, {{/unless}}{{/each}}];
  }
{{#each ctrl.psAppDataEntity.allPSAppDEFields as | field |}}
  get {{lowerCase field.codeName}}() {
      return this.$DO.{{lowerCase field.codeName}};
  }
  set {{lowerCase field.codeName}}(value: any) {
      this.$DO.{{lowerCase field.codeName}} = value;
  }
{{/each}}
  set {{lowerCase ctrl.psAppDataEntity.codeName}}(value: any) {
      this.$DO.{{lowerCase ctrl.psAppDataEntity.keyPSAppDEField.codeName}} = value;
  }
  get {{lowerCase ctrl.psAppDataEntity.codeName}}() {
      return this.$DO.{{lowerCase ctrl.psAppDataEntity.keyPSAppDEField.codeName}};
  }
}